package cn.edu360.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import cn.edu360.biz.chain.AbstractDataLogCollectChain;
import cn.edu360.biz.chain.constant.DataLogCollectConstant;
import cn.edu360.biz.chain.factory.DataLogCollectChainFactory;

@Component
public class DateLogCollectorTask {
	
	@Scheduled(cron = "0 0/1 * * * ?")
	public void  startDateLogCollectorTask () {
		System.out.println("开始统计。。。。。");
		AbstractDataLogCollectChain handler = DataLogCollectChainFactory.createDataLogCollectHander(); 
		handler.dateLogHandlerChain(DataLogCollectConstant.LOG_FILE_LOCATION, DataLogCollectConstant.LOG_TEMP_UPLOAD_LOCATION);
	}
	

}
